﻿using System;

namespace OperatorStudy
{
    class Student {
        public int age;
        public float math;
        public float eglish;

        public Student() { 
        }
        public Student(int age,float math,float eglish) {
            this.age = age;
            this.math = math;
            this.eglish = eglish;
        
        }
        public static Student operator+(Student stu1, Student stu2) {
            Student index = new Student();
            index.age = stu1.age + stu2.age;
            index.math = stu1.math + stu2.math;
            index.eglish = stu1.eglish + stu2.eglish;
            return index;
        }
    }
    class Program
    {
        static void Main1(string[] args)
        {
            Student stu1 = new Student(10, 25.5f, 50.0f);
            Student stu2 = new Student(5, 25.0f, 50.0f);
            System.Console.WriteLine((stu1 + stu2).age + "  " + (stu1 + stu2).eglish);
           
        }
    }
}
